import Vue from 'vue'
import VueRouter from 'vue-router'

import Head from '@/views/Head.vue'
import Class from '@/views/Class.vue'
import Order from '@/views/Order.vue'
import My from '@/views/My.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/head'
    },
    {
      path: '/head',
      component: Head
    },
    {
      path: '/class',
      component: Class
    },
    {
      path: '/order',
      component: Order
    },
    {
      path: '/my',
      component: My
    }
  ]
})

export default router
